package AddonsSheep3.Runnable;

import AddonsSheepContoller.ASPlayer.ASAccount;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;

public class PlayerLoginRunnable extends BukkitRunnable {
    private static boolean loginComplete = false;
    private static Player loginPlayer = null;
    private static ASAccount loginAccount = null;

    public PlayerLoginRunnable(Player loginPlayer) { this.loginPlayer = loginPlayer; }
    public ASAccount getLoginAccount() { return loginAccount; }

    @Override
    public void run() {
        if(loginComplete) { this.cancel(); Thread.currentThread().interrupt(); }

        loginPlayer.sendMessage("");
    }
}
